//
//  Shape.m
//  Racing
//
//  Created by vy phan on 4/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Shape.h"


@implementation Shape
- (id)init
{
	self = [super init];
	return self;
}
/* get the origin x value */
- (int)x {
	return x;
}

/* get the origin y value */
- (int)y {
	return y;
}

/* set the origin x value */
- (int)x:(int)aNumber {
	x = aNumber;
	return x;
}

/* set the origin y value */
- (int)y:(int)aNumber {
	y = aNumber;
	return y;
}

/* shift the origin based on the (x,y) point */
- (void)moveToX:(int)newX moveToY:(int)newY {
	[self x: newX];
	[self y: newY];
}
/* shift the origin based on the delta (x,y) point */
- (void)rMoveToX:(int)deltaX rMoveToY:(int)deltaY {
	[self x:([self x] + deltaX)];
	[self y:([self y] + deltaY)];
}

@end
